package com.olinsports.system.olinsportssystem.manager;

import com.olinsports.system.olinsportssystem.model.SavingDetail;
import com.olinsports.system.olinsportssystem.model.StmUsr;
import com.olinsports.system.olinsportssystem.service.SavingDetailService;
import com.olinsports.system.olinsportssystem.service.StmUsrService;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.ui.ModelMap;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/22.
 */
@Component
public class StmUsrManager {
    @Autowired
    private StmUsrService stmUsrService;

    public String singIn(String usrName,String password,ModelMap modelMap){
        return stmUsrService.singIn(usrName,password,modelMap);
    }

    public List<StmUsr> selectAll(){
        return stmUsrService.selectAll();
    }

    public int insertAll(StmUsr stmUsr){
        return stmUsrService.insertAll(stmUsr);
    }

}
